﻿@model DAEProde.Domain.Tournament

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Administración de Fechas</h2>

<p>
    @Html.ActionLink("Nueva Fecha", "Create", new { id = Model.Id })
</p>

<table>
    <tr>
        <th>
            Nombre Fecha
        </th>
        <th></th>
    </tr>

    

    @foreach (var item in Model.MatchDates)
    {
        <tr>
            <td>
                @item.Name
            </td>
            <td>
                @Html.ActionLink("Editar", "Edit", new { id = item.Id }) |
                @Html.ActionLink("Detalles", "Details", new { id = item.Id }) |
                @Html.ActionLink("Ver Partidos", "Index", "MatchManager", new { id = item.Id }, null) |
                @Html.ActionLink("Cargar Resultados", "LoadResult", new { id = item.Id }) |
                @Html.ActionLink("Borrar", "Delete", new { id = item.Id })
            </td>
        </tr>
    }
</table>

<p>
    @Html.ActionLink("Volver", "Index", "TournamentManager", null, null)
</p>